package com.springCloud.feign.controller;

import com.springCloud.feign.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Title: HelloController<br>
 * Description: HelloController<br>
 * CreateDate:2021年02月08日 15:57
 *
 * @author jackie.scl
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("/sayHello")
    public String sayHello(String name) {
        System.out.println("sayHello,come here");
        return helloService.sayHello(name);
    }
}
